Hi Davide,
You can create a new component template, and create two variables in groovy for example:
[
setHTMLOutput()
.....
def image=unit.selectSingleNode("layout:Attribute[@name='thumbnail']")
def link=unit.selectSingleNode("layout:Link[@name='Details']")
]
where:
@name='thumbnail']" is the image attribute name
@name='Details' is the link name
and you can print the image with the link with a similar code to:
.....
<td>
<a onclick="<wr:AjaxURL context="link"/>">
<wr:Value context="image"/>
</a>
</td>
.....
where:
<wr:AjaxURL context="link"/> print the url link
<wr:Value context="image"/> pring the image attribute